<%@ page language="java" contentType="text/html; charset=utf-8"
         pageEncoding="utf-8" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <title>添加子分类活动</title>
</head>
<body>
<%
    String supId = request.getParameter("supId");
    request.setAttribute("supId", supId);
%>
<form method="POST" name="limitLength" action="/admin/subClassify/addSubClassify.do?supId=${supId}">

    <h1>${msg}</h1>

    <h2>添加子分类活动</h2>
    <hr>
    <a href="showAllClassify.do">返回大分类活动列表页</a>
    <hr>
    <table>
        <tr>
            <td>请输入要添加的子分类活动名称(限10个字符或汉字)：</td>
        </tr>
        <tr>
            <td><textarea name="subName" maxlength="10"></textarea></td>
        </tr>
        <tr>
            <td><input type="submit" name="Submit" value="提交"
                       onClick="return validateLogin()"/>
                <input type="reset" name="Reset" value="重置"/>
            </td>
        </tr>
    </table>
</form>
<script language="javascript">
    function validateLogin() {
        var name = document.limitLength.subName.value;
        if (name == "" || name == null) {
            alert("请输入要添加的活动名称!");
            return false;
        }
    }
</script>
</body>
</html>
